# coding: utf-8

from models import *
from django.contrib import admin

class ImageDataAdmin(admin.ModelAdmin):
    date_hierachy = 'create_date'
    exclude = ('create_date', 'modify_date')
    list_display = ( 'get_thumb_img_tag', '__unicode__', 'size', 'create_date', 'modify_date', 'user', 'dateTimeDigitized', 'model')
admin.site.register(ImageData, ImageDataAdmin)


class AudioDataAdmin(admin.ModelAdmin):
    date_hierachy = 'create_date'
    exclude = ('create_date', 'modify_date')
    list_display = ('__unicode__', 'size', 'create_date', 'modify_date', 'user')
admin.site.register(AudioData, AudioDataAdmin)


class VideoDataAdmin(admin.ModelAdmin):
    date_hierachy = 'create_date'
    exclude = ('create_date', 'modify_date')
    list_display = ('__unicode__', 'size', 'create_date', 'modify_date', 'user')
admin.site.register(VideoData, VideoDataAdmin)
